// Construct world population



//----------------------------------------------
//----------------------------------------------
//----------------------------------------------
//----------------------------------------------
//Interpolate Maddison population data



insheet using "$base/InputData/maddison_pop.csv", clear
tsset year
tsfill
ipolate pop year, gen(pop2)
replace pop2=pop2/1000000
keep year pop2
rename pop2 pop

outsheet year pop using "$base/Outputs/Data/maddison_pop.csv", comma replace
clear

